package com.yqzl.service.impl;

import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.yqzl.entity.Comment;
import com.yqzl.mapper.CommentMapper;
import com.yqzl.service.CommentService;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class CommentServiceImpl extends ServiceImpl<CommentMapper, Comment> implements CommentService {

  public List<Comment> getAllCommentByBId(String bid) {
    List<Comment> comments = baseMapper.listAllByBid(bid);
    return comments;
  }
}
